import req from './api.js'

const getQuestionId = (language = 1) => req('/api/question/question_list', {language}, 'GET');
const getQuestion = (params) => req('/api/question/get_question', params);
const postQuestion = (params) => req('/api/question/postquesinfo_new', params, 'POST');
const NewList = (take, skip) => req('/api/news/new_list', {p: 'wx', take, skip}, 'GET');
const NewDetail = (id) => req('/api/news/new_detail', {p: 'wx', id}, 'GET');

export {getQuestionId, getQuestion, postQuestion, NewList,NewDetail}